feat: introduce list for fatal status codes#362
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new feature to configure a list of gRPC status codes that should be considered fatal, which is a valuable addition for more robust error handling. The implementation is mostly sound, but I've identified a couple of critical issues in grpc_watcher.py that would lead to a TypeError at runtime. Specifically, a method is called with an incorrect number of arguments, and an exception is instantiated improperly. Additionally, I've noted a minor issue with a generic error message in grpc.py and a potential for test flakiness due to a commented-out wait_for call in the test steps.
...der-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/connector/grpc_watcher.py
Outdated
Show resolved
Hide resolved
...der-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/connector/grpc_watcher.py
Outdated
Show resolved
Hide resolved
providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/grpc.py
Outdated
Show resolved
Hide resolved
providers/openfeature-provider-flagd/tests/e2e/step/provider_steps.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Konvalinka <lea.konvalinka@dynatrace.com>
8eb934c to
16956f5
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #362 +/- ##
==========================================
- Coverage 95.43% 95.29% -0.15%
==========================================
Files 16 16
Lines 877 913 +36
==========================================
+ Hits 837 870 +33
- Misses 40 43 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Lea Konvalinka <lea.konvalinka@dynatrace.com>
3304486 to
ad0baf1
Compare
Signed-off-by: Lea Konvalinka <lea.konvalinka@dynatrace.com>
ad0baf1 to
52c283d
Compare
This PR